package cn.net.model;

import java.io.Serializable;
import java.util.List;

public class Routing implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    //主键
//	private String GUID;

    //剩余航班数量
//	private int last;

    //要保存的必要信息
    private String data;

    //币种
    private String currency;

    // 成人单价（以元为单位）
    private double adultPrice;

    // 成人税费（以元为单位）
    private int adultTax;

    // 儿童单价（以元为单位）
    private double childPrice;

    // 儿童税费（以元为单位）
    private int childTax;

    // 乘客国籍类型:0全部/1适用/2不适用
    private int nationalityType;

    // 乘客国籍，可以为空，若输入则为国家二字码，多个用,分隔，最多支持五个国家或地区
    private String nationality;

    // 适用乘客年龄，可以为空，输入格式为12~59，表示适用于12~59岁的乘客预订，年龄限制范围为12~99，仅支持录入一个年龄段
    private String suitAge;

    // 报价类型：0 普通价 / 1留学生价
    private int priceType;

    // 报价类型：0 预定价 / 1申请价/2预约
    private int applyType;

    // 成人税费类型：0 未含税 / 1已含税
    private int adultTaxType;

    // 儿童税费类型：0 未含税 / 1已含税
    private int childTaxType;

    //出票速度
    private int ticketTimeLimit;

    // 报销凭证类型：0行程单/1旅行发票,如果该字段没有，或者为空，默认为行程单类型
    private int ticketInvoiceType;

    // 退改签信息，参考 Rule Element
    private Rule rule;

    // 去程航段
    private List<Segment> fromSegments;

    // 回程航段
    private List<Segment> retSegments;

    //----------------------------------------

//	public String getGUID() {
//		return GUID;
//	}
//
//	public void setGUID(String gUID) {
//		GUID = gUID;
//	}
//
//	public int getLast() {
//		return last;
//	}
//
//	public void setLast(int last) {
//		this.last = last;
//	}

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public double getAdultPrice() {
        return adultPrice;
    }

    public void setAdultPrice(double adultPrice) {
        this.adultPrice = adultPrice;
    }

    public int getAdultTax() {
        return adultTax;
    }

    public void setAdultTax(int adultTax) {
        this.adultTax = adultTax;
    }

    public double getChildPrice() {
        return childPrice;
    }

    public void setChildPrice(double childPrice) {
        this.childPrice = childPrice;
    }

    public int getChildTax() {
        return childTax;
    }

    public void setChildTax(int childTax) {
        this.childTax = childTax;
    }

    public int getNationalityType() {
        return nationalityType;
    }

    public void setNationalityType(int nationalityType) {
        this.nationalityType = nationalityType;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }

    public String getSuitAge() {
        return suitAge;
    }

    public void setSuitAge(String suitAge) {
        this.suitAge = suitAge;
    }

    public int getPriceType() {
        return priceType;
    }

    public void setPriceType(int priceType) {
        this.priceType = priceType;
    }

    public int getApplyType() {
        return applyType;
    }

    public void setApplyType(int applyType) {
        this.applyType = applyType;
    }

    public int getAdultTaxType() {
        return adultTaxType;
    }

    public void setAdultTaxType(int adultTaxType) {
        this.adultTaxType = adultTaxType;
    }

    public int getChildTaxType() {
        return childTaxType;
    }

    public void setChildTaxType(int childTaxType) {
        this.childTaxType = childTaxType;
    }

    public int getTicketInvoiceType() {
        return ticketInvoiceType;
    }

    public void setTicketInvoiceType(int ticketInvoiceType) {
        this.ticketInvoiceType = ticketInvoiceType;
    }

    public Rule getRule() {
        return rule;
    }

    public void setRule(Rule rule) {
        this.rule = rule;
    }

    public List<Segment> getFromSegments() {
        return fromSegments;
    }

    public void setFromSegments(List<Segment> fromSegments) {
        this.fromSegments = fromSegments;
    }

    public List<Segment> getRetSegments() {
        return retSegments;
    }

    public void setRetSegments(List<Segment> retSegments) {
        this.retSegments = retSegments;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public int getTicketTimeLimit() {
        return ticketTimeLimit;
    }

    public void setTicketTimeLimit(int ticketTimeLimit) {
        this.ticketTimeLimit = ticketTimeLimit;
    }

    @Override
    public String toString() {
        return "Routing{" +
                "data='" + data + '\'' +
                ", currency='" + currency + '\'' +
                ", adultPrice=" + adultPrice +
                ", adultTax=" + adultTax +
                ", childPrice=" + childPrice +
                ", childTax=" + childTax +
                ", nationalityType=" + nationalityType +
                ", nationality='" + nationality + '\'' +
                ", suitAge='" + suitAge + '\'' +
                ", priceType=" + priceType +
                ", applyType=" + applyType +
                ", adultTaxType=" + adultTaxType +
                ", childTaxType=" + childTaxType +
                ", ticketTimeLimit=" + ticketTimeLimit +
                ", ticketInvoiceType=" + ticketInvoiceType +
                ", rule=" + rule +
                ", fromSegments=" + fromSegments +
                ", retSegments=" + retSegments +
                '}';
    }
}
